from enum import Enum
"""
    请求授权结果状态
"""
class ControlAuthNotifyStatus(Enum):
    CANCELED = "canceled" # 有其他用户发起授权请求弹窗，本次弹窗被取消
    FAILED = "failed" # 错误或者用户拒绝
    OK = "ok" # 用户同意

"""
    flyto 执行结果事件状态
"""
class FlyToPointProgressStatus(Enum):
    INIT = "init"
    CANCEL = "wayline_cancel" # 取消飞向目标点
    FAILED = "wayline_failed" # 执行失败
    FINISH = "wayline_finish" # 执行成功，已飞向目标点
    PROGRESS = "wayline_progress" # 执行中


"""
    一键起飞结果事件通知
"""
class TakeoffProgressStatus(Enum):
    TAKE_FINISH = "task_finish" # 一键起飞任务完成
    TAKE_READY = "task_ready" # 准备起飞
    CANCEL = "wayline_cancel" # 取消飞向目标点
    FAILED = "wayline_failed" # 执行失败
    OK = "wayline_ok" # 执行成功,已飞向目标点
    PROGRESS = "wayline_progress" # 执行中
